﻿@model Adams.Web.Models.News.Index.PageLoad
@{
    Layout = "~/Views/Shared/_AppLayout.Mobile.cshtml";
}
@section Head{
}
@section Scripts {
}
<h1>News</h1>
@foreach (var Article in Model.News)
{
    <p>
        <span><strong><a href="/News/@Adams.Shared.UrlHelper.Enc(Article.Title)">@Article.Title</a></strong></span><br />
        Release Date: @Article.ReleaseDate.ToShortDateString()<br />
        <span>@Article.ShortDescription</span><br />
    </p>
    <br />
}
<div style="text-align: center;">
    @if (Model.Page > 1)
    {
        <a href="/News?page=@(Model.Page - 1)">go back</a>
    }
    @if (Model.Page < (Model.RecordCount / Model.PageSize))
    {
        <a href="/News?page=@(Model.Page + 1)">read more</a>
    }
</div>
